/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body, #app {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 布局相关 */
.layout-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.layout-header {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  z-index: 9;
}

.layout-content {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.layout-sidebar {
  background: #001529;
  overflow: auto;
}

.layout-main {
  flex: 1;
  overflow: auto;
  background: #f0f2f5;
  padding: 16px;
}

/* 卡片样式 */
.content-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03),
    0 1px 6px -1px rgba(0, 0, 0, 0.02),
    0 2px 4px 0 rgba(0, 0, 0, 0.02);
  padding: 24px;
  margin-bottom: 16px;
}

/* 表格样式优化 */
.el-table {
  .el-table__header {
    th {
      background: #fafafa !important;
      color: #333;
      font-weight: 600;
    }
  }
  
  .el-table__row {
    &:hover {
      background: #f5f7fa !important;
    }
  }
}

/* 分页样式 */
.pagination-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

/* 搜索表单 */
.search-form {
  margin-bottom: 16px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  
  .el-form-item {
    margin-bottom: 0;
  }
}

/* 操作按钮组 */
.table-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  
  .actions-left {
    display: flex;
    gap: 8px;
  }
  
  .actions-right {
    display: flex;
    gap: 8px;
  }
}

/* 状态标签 */
.status-tag {
  &.success {
    color: #67c23a;
    background: #f0f9ff;
    border-color: #67c23a;
  }
  
  &.warning {
    color: #e6a23c;
    background: #fdf6ec;
    border-color: #e6a23c;
  }
  
  &.danger {
    color: #f56c6c;
    background: #fef0f0;
    border-color: #f56c6c;
  }
  
  &.info {
    color: #909399;
    background: #f4f4f5;
    border-color: #909399;
  }
}

/* 响应式 */
@media (max-width: 768px) {
  .layout-content {
    flex-direction: column;
  }
  
  .layout-sidebar {
    width: 100% !important;
    height: auto !important;
  }
  
  .search-form {
    .el-form-item {
      width: 100% !important;
    }
  }
}

/* 动画 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 6px;
  
  &:hover {
    background: #a8a8a8;
  }
}